package cheme.ProcessEditor.Parts.ConsoleView;

import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;

import org.eclipse.draw2d.IFigure;
import org.eclipse.gef.editparts.AbstractGraphicalEditPart;

import cheme.ProcessModel.IPropertyAware;
import cheme.ProcessModel.SimpleLogger;

public class EditPartWithListener extends AbstractGraphicalEditPart
implements PropertyChangeListener
{
	private static String me = "cheme.ProcessEditor.Parts.ConsoleView.EditPartWithListener";

	public void activate()
	{
		SimpleLogger.log(me, me + ".activate()");
		
		super.activate();
		((IPropertyAware)getModel()).addPropertyChangeListener(this);
		
	}

	public void deactivate()
	{
		SimpleLogger.log(me, me + ".deactivate()");
		
		super.deactivate();
		((IPropertyAware)getModel()).removePropertyChangeListener(this);
	}

	@Override
	protected IFigure createFigure() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	protected void createEditPolicies() {
		// TODO Auto-generated method stub
		
	}

	public void propertyChange(PropertyChangeEvent arg0) {
		// TODO Auto-generated method stub
		
	}
	
	

}
